<?php
    include_once '../service/Project_Service.php';

    $service_Project        =   new Project_Service();

    $id = $_GET['id'];
    $projects   =   $service_Project->getProject_Detail($id);

        $id         =   $projects->getID();
        $name       =   $projects->getPro_Name();
//        $image      =   $projects->getPro_Image();
        $descript   =   $projects->getPro_Description();
        $cate_id    =   $projects->getCate_Id();
?>
<a href="javascript:javascript:history.go(-1)" class="button_back"></a>
<h2>Edit project</h2>
<div class="clear-block">
    <form enctype="multipart/form-data" id="node-update-form" method="post" accept-charset="UTF-8" action="../action/control_project.php?action=update">
        <div>
            <div class="node-form">
                <div class="standard">
                    <div id="edit-title-wrapper" class="form-item">
                        <img src="../uploads/thumb/<?php echo $image;?>" alt=""/>
                    </div>
                    <div id="edit-title-wrapper" class="form-item">
                        <label for="edit-title">Project Name: <span title="This field is required." class="form-required">*</span></label>
                        <input type="text" class="form-text" value="<?php echo $name;?>" size="30" id="txtName" name="txtName" maxlength="255">
                    </div>
                    <div id="edit-title-wrapper" class="form-item">
                        <label for="edit-title">Description: <span title="This field is required." class="form-required">*</span></label>
                        <textarea class="form-textarea resizable textarea-processed" id="taDescript" name="taDescript" rows="4" cols="60"><?php echo $descript;?></textarea>
                    </div>
                    <div id="edit-title-wrapper" class="form-item">
                        <input type="hidden" value="<?php echo $cate_id;?>" id="textCateID" name="txtCateID"/>
                        <input type="hidden" value="<?php echo $id;?>" id="txtID" name="txtID"/>
                        <input type="submit" class="form-submit" value="Save" id="btnSubmit" name="btnSubmit">
                        <input type="reset" class="form-submit" value="Reset" >
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>

<!--                    <div id="edit-title-wrapper" class="form-item">
                        <label for="edit-title">Project Image: <span title="This field is required." class="form-required">*</span></label>
                        <input type="file" class="form-text" value="" size="60" id="image" name="image" maxlength="255">
                    </div>-->